import Layout from '@/layout'
import listRoutes from './list'
import classifyRoutes from './classify'
import specRoutes from './spec'
import brandRoutes from './brand'
import supplierRoutes from './supplier'
import tagRoutes from './tag'
import keywordsRoutes from './keywords'

const goodsRoutes = {
  path: '/goods',
  name: 'Goods',
  component: Layout,
  meta: {
    title: '商品管理',
    icon: 'goods'
  },
  redirect: '/goods/goods_list',
  children: [
    listRoutes,
    classifyRoutes,
    specRoutes,
    brandRoutes,
    supplierRoutes,
    tagRoutes,
    keywordsRoutes
  ]
}

export default goodsRoutes
